package zsj.androidknife.utils;

/**
 * Created by asus on 2016/4/19.
 */
public abstract class BackgroundAction<P,R>
{
    private boolean canceled;
    public abstract R doInBackground(P param);
    public void cancel(boolean b)
    {
        canceled = b;
    }
    public boolean isCanceled()
    {
        return canceled;
    }

}
